import React, {Component} from 'react'
import {connect} from 'react-redux'
import {getUserList} from '../../redux/actions'

import UserList from '../../components/user-list/user-list'

class MengXin extends Component {

  componentDidMount() {
    this.props.getUserList('老板');
  }

  render() {

    return (
        <UserList userList={this.props.userList}/>
    )
  }
}

export default connect(
    state => ({userList: state.userList}),
    {getUserList}
)(MengXin)